package youth;
public class wenyiteens extends Human{
    private String school;
    private String daibiao;
    private String dream;
    public void say(){
        if (school == null) {
            System.out.println("这个人的名字是"+super.name+",年龄是"+age+",性别为"+gender+",代表作为"+daibiao+"梦想为："+dream+"!");
        }

        else{
            System.out.println("这个人的名字是"+name+",年龄是"+age+",性别为"+gender+",在"+school+"就读,代表作为《"+daibiao+"》,梦想为："+dream+"!");
        }
    }
    public void setwenyi(String school, String daibiao,String dream){
        this.school = school;
        this.daibiao = daibiao;
        this.dream = dream;
    }
}